import { ActionButtonsTemplate, SelectOption } from '@/api/global/types'
import { UnwrapRef } from 'vue'

export type CurdData = {
  id: number
  invoice_no: string
  applicant: number
  customer_id: number
  order_id: number
  order_type: string
  invoicing_date: string
  tax_refund?: number
  taxrefund_amount?: number | null
  invoice_amount?: number
  payment_ids: string | null
  invoice_type: number
  remark: string | null
  attach: string | null
  invoice_attach: string | null
  invoice_header: string | null
  tax_id_num: string | null
  register_phone: string | null
  billing_address: string | null
  opening_bank: string | null
  opening_account: string | null
  status?: number
  creator?: number
  create_time?: string
  update_time?: string
  is_del?: number
  drawer?: number
  completion_time?: string | null
  customer_option?: any
  order_option?: any
  payment_option?: any
  applicant_option?: any
  attach_list?: any
  invoice_attach_list?: any
}

export type FieldEnum = {
  invoice_type?: {}
  order_type?: {}
  status?: {}
}

export type SchemaConfig = {
  actionButtonsTemplate?: ActionButtonsTemplate
  fieldEnum?: FieldEnum
  formDialogSchema?
  countrySelectWithInputStore?
  tagsWithInputStore?
  ownerSelectWithInputStore?
  partnerSelectWithInputStore?
  uploadList?
  countrySelectOptions?: SelectOption[]
  operatorOptions?: SelectOption[]
  fileList?: object[]
  setValues?: UnwrapRef<any>
}
